import request from '@/utils/request'

// 查询档案影像列表
export function listFileAttachment(query) {
    return request({
        url: '/business/fileAttachment/list',
        method: 'get',
        params: query
    })
}

// 查询档案影像详细
export function getFileAttachment(id) {
    return request({
        url: '/business/fileAttachment/' + id,
        method: 'get'
    })
}

// 新增档案影像
export function addFileAttachment(data) {
    return request({
        url: '/business/fileAttachment',
        method: 'post',
        data: data
    })
}

// 修改档案影像
export function updateFileAttachment(data) {
    return request({
        url: '/business/fileAttachment',
        method: 'put',
        data: data
    })
}

// 删除档案影像
export function delFileAttachment(id) {
    return request({
        url: '/business/fileAttachment/' + id,
        method: 'delete'
    })
}

// 删除档案影像
export function uploadFileAttachment(file, data) {
    return request({
        url: '/business/fileAttachment/upload',
        method: 'post',
        data: data,
        params: file
    })
}

